/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/[tenant_code]/layout-styles.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************/
/* app/[tenant_code]/layout-styles.css */
/* 重置和基礎樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* 頂部導航欄 */
.tenant-header {
  background-color: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
}

.tenant-header h1 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

/* 主導航容器 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: -50px;
}

/* 桌面版偏移 (1280px以上) */
@media (min-width: 1280px) {
  .main-nav {
    position: relative;
    transform: translateX(-50px);  /* 向左平移 50px */
  }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  background-color: #f0f7ff;
  color: #3498db;
  transform: translateY(-1px);
}

/* 用戶區域容器 */
.nav-user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 我的訂單按鈕 */
.my-orders-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.my-orders-button:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 購物車容器 */
.cart-container {
  position: relative;
}

.cart-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-button:hover {
  background-color: #e8f5e9;
  border-color: #4CAF50;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.cart-icon {
  font-size: 1.3rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.cart-pin-indicator {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.6rem;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 購物車下拉框 - 加寬 150% (原約320px → 480px) */
.cart-dropdown {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 480px !important;
  max-width: 90vw;
  max-height: 80vh;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.3s ease;
  font-size: 13px;
}

.cart-dropdown.pinned {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 0 2px #4CAF50;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
}

.cart-dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pin-cart-btn {
  background: none;
  border: 2px solid #ddd;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #666;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.pin-cart-btn:hover {
  background-color: #f0f0f0;
  color: #4CAF50;
  border-color: #4CAF50;
  transform: rotate(15deg);
}

/* 購物車項目區域 - 加高 */
.cart-dropdown-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  max-height: 500px;
}

/* 購物車項目 - 加高加寬 */
.cart-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
  position: relative;
}

.cart-dropdown-item:hover {
  background-color: #fafafa;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #2c3e50;
}

.cart-item-promotion {
  margin-bottom: 8px;
}

.promotion-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

/* 價格信息區域 - 詳細顯示原價、折扣、應付 */
.cart-item-info {
  margin-bottom: 10px;
  padding: 8px 0;
  border-top: 1px dashed #eee;
  border-bottom: 1px dashed #eee;
}

.price-info,
.discount-info,
.final-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
}

.price-info:last-child,
.discount-info:last-child,
.final-price-info:last-child {
  margin-bottom: 0;
}

.original-price-label,
.discount-label,
.final-price-label {
  color: #666;
}

.original-price-value {
  color: #999;
  /* text-decoration: line-through; */
}

.discount-value {
  color: #ff6b6b;
  font-weight: 500;
}

.final-price-value {
  color: #4CAF50;
  font-weight: 600;
  font-size: 13px;
}

/* 購物車控制按鈕 */
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.remove-item-btn {
  background: linear-gradient(135deg, #ff4757, #ff2e43);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

.remove-item-btn:hover {
  background: linear-gradient(135deg, #ff2e43, #ff1e32);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.quantity-btn {
  background-color: white;
  border: none;
  color: #555;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
  background-color: #4CAF50;
  color: white;
}

.quantity-btn:disabled {
  background-color: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
}

.decrease-btn {
  border-right: 1px solid #e0e0e0;
}

.increase-btn {
  border-left: 1px solid #e0e0e0;
}

.quantity-input {
  width: 45px;
  height: 28px;
  text-align: center;
  border: none;
  font-size: 12px;
  font-weight: 500;
  -moz-appearance: textfield;
  padding: 0;
  background-color: white;
  color: #333;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.quantity-input:focus {
  outline: none;
  background-color: #f8f9fa;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-subtotal {
  font-weight: 600;
  color: #4CAF50;
  font-size: 12px;
  min-width: 100px;
  text-align: right;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.subtotal-info {
  display: flex;
  gap: 5px;
  justify-content: space-between;
}

.subtotal-label {
  color: #666;
}

.subtotal-value {
  color: #4CAF50;
  font-weight: 600;
}

/* 購物車底部 */
.cart-dropdown-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

/* 折扣匯總區域 */
.cart-discount-summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.discount-breakdown {
  font-size: 12px;
}

.subtotal-row,
.discount-percentage-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.discount-percentage-row {
  color: #ff6b6b;
  font-weight: 500;
}

.discount-amount {
  font-weight: 500;
}

/* 總計區域 */
.cart-total {
  margin-bottom: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 0;
}

.total-amount {
  color: #4CAF50;
  font-size: 18px;
}

.total-savings {
  text-align: right;
  color: #4CAF50;
  font-size: 12px;
  font-weight: 500;
  margin-top: -5px;
  padding-top: 5px;
  border-top: 1px dashed #ddd;
}

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.checkout-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.checkout-btn:disabled {
  background: linear-gradient(135deg, #cccccc, #bbbbbb);
  cursor: not-allowed;
  box-shadow: none;
}

/* 空購物車狀態 */
.cart-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #666;
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.cart-empty p {
  margin-bottom: 1rem;
  font-size: 13px;
  color: #888;
}

.browse-products-btn {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.browse-products-btn:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

/* 關閉按鈕 */
.close-cart-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff4757, #ff2e43);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
  transition: all 0.3s ease;
  z-index: 1002;
}

.close-cart-btn:hover {
  background: linear-gradient(135deg, #ff2e43, #ff1e32);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 16px rgba(255, 71, 87, 0.4);
}

/* 用戶菜單 */
.user-menu-container {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: #555;
}

.user-menu-button:hover {
  background-color: #e8f5e9;
  border-color: #4CAF50;
  color: #2c3e50;
}

.user-icon {
  font-size: 1.1rem;
}

.user-name {
  font-weight: 500;
  color: #2c3e50;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  font-size: 0.7rem;
  color: #666;
  transition: transform 0.3s ease;
}

.chevron.open {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  z-index: 1001;
  margin-top: 0.5rem;
}

.user-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-email {
  font-size: 0.85rem;
  color: #666;
  word-break: break-all;
  flex: 1;
}

.close-user-menu-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.4rem;
  padding: 0 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-user-menu-btn:hover {
  color: #ff4757;
  background-color: #ffeaea;
  transform: rotate(90deg);
}

.user-dropdown-menu {
  padding: 0.5rem 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-menu-item:hover {
  background-color: #f5f5f5;
  color: #2c3e50;
}

.menu-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.logout-btn {
  color: #ff4757;
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
}

.logout-btn:hover {
  background-color: #ffeaea;
  color: #ff2e43;
}

/* 登入/註冊鏈接 */
.auth-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-link,
.register-link {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.login-link:hover {
  background-color: #e8f5e9;
  color: #4CAF50;
  transform: translateY(-1px);
}

.register-link {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.register-link:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.separator {
  color: #ddd;
  font-size: 0.9rem;
}

/* 載入動畫 */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 主內容區域 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.main-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

/* 頁腳 */
.tenant-footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.tenant-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #bdc3c7;
}

.footer-link {
  color: #ecf0f1;
  text-decoration: none;
  margin: 0 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: background-color 0.3s ease;
  font-size: 0.85rem;
}

.footer-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

/* ========== 漢堡菜單樣式 - 當視窗寬度小於1280px時顯示 ========== */

/* 漢堡菜單按鈕 - 默認隱藏（1280px以上） */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-line.open:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-line.open:nth-child(2) {
  opacity: 0;
}

.hamburger-line.open:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* 手機/平板版樣式 - 視窗寬度小於1280px */
@media (max-width: 1279px) {
  .tenant-header {
    position: relative;
    padding: 1rem;
    justify-content: center;
  }
  
  .tenant-header h1 {
    font-size: 1.2rem;
    text-align: center;
  }
  
  /* 顯示漢堡菜單按鈕 - 放在左邊 */
  .hamburger-btn {
    display: flex;
  }
  
  /* 主導航容器 - 改為側邊滑出菜單 */
  .main-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #f5f7fa;  /* 淺灰色背景 */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    transition: left 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 15px rgba(0,0,0,0.15);
    padding-top: 60px;
  }
  
  /* 菜單打開時 */
  .main-nav.menu-open {
    left: 0;
  }
  
  /* 菜單打開時的遮罩層 */
  .main-nav.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: -1;
  }
  
  /* 用戶區域 - 放在上方 */
  .nav-user-section {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    margin-bottom: 0.5rem;
  }
  
  /* 我的訂單按鈕 - 優化樣式 */
  .my-orders-button {
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  
  /* 購物車容器 */
  .cart-container {
    width: 100%;
  }
  
  .cart-button {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
  
  .cart-button:hover {
    background-color: #f0f0f0;
  }
  
  /* 用戶菜單 */
  .user-menu-container {
    width: 100%;
  }
  
  .user-menu-button {
    width: 100%;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
  
  /* 登入/註冊鏈接 */
  .auth-links {
    justify-content: center;
    padding: 0.75rem 0;
    gap: 1rem;
  }
  
  .login-link,
  .register-link {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
  
  .login-link {
    background-color: #fff;
    border: 1px solid #ddd;
  }
  
  /* 導航鏈接容器 - 放在下方 */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  
  .nav-link:hover {
    background-color: #e8f0fe;
    color: #3498db;
    padding-left: 1.5rem;
  }
  
  /* 優化購物車下拉框在手機上的顯示 */
  .cart-dropdown {
    position: fixed;
    top: 60px;
    right: 10px;
    left: auto;
    width: calc(100vw - 20px) !important;
    max-height: 70vh;
  }
  
  /* 用戶下拉菜單在手機上的調整 */
  .user-dropdown {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
  }
}

/* 平板設備優化 (1280px以下) */
@media (min-width: 769px) and (max-width: 1279px) {
  .main-nav {
    width: 320px;
    left: -320px;
  }
  
  .main-nav.menu-open::before {
    left: 320px;
  }
}

/* 大手機優化 */
@media (max-width: 480px) {

  .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  /* 移除 main-content 的 padding 和 margin */
  .main-content {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* 確保 shop-container 也沒有邊距 */
  .shop-container {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* 商品網格 */
  .products-grid {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .tenant-header h1 {
    font-size: 1rem;
  }
  
  .main-nav {
    width: 280px;
    left: -280px;
  }
  
  .main-nav.menu-open::before {
    left: 280px;
  }
  
  .cart-dropdown {
    width: calc(100vw - 16px) !important;
    right: 8px;
  }
  
  .close-cart-btn {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    bottom: 10px;
    right: 10px;
  }
}
